﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AnnotateMe.Interfaces
{
    public sealed class PossiblyAnnotatedBlock
    {
        private readonly ImmutableRectangle contentRectangle;
        private readonly ImmutableRectangle annotationRectangle;

        public PossiblyAnnotatedBlock(ImmutableRectangle contentRectangle)
        {
            this.contentRectangle = contentRectangle;
        }

        public PossiblyAnnotatedBlock(ImmutableRectangle contentRectangle, ImmutableRectangle annotationRectangle)
        {
            this.contentRectangle = contentRectangle;
            this.annotationRectangle = annotationRectangle;
        }

        public bool HasAnnotation { get { return this.annotationRectangle != null; } }
        public ImmutableRectangle ContentRectangle { get { return this.contentRectangle; } }
        public ImmutableRectangle AnnotationRectangle { get { return this.annotationRectangle; } }
    }
}
